# rest-xorm-example

My own toy example with
http://github.com/ant0ine/go-json-rest as rest server
http://github.com/go-xorm/xorm as a xorm database ORM

# Installation
## Requirements
* go-1.12+
* sqlite3

## Build
```bash
cd go/src/notabug.org/Marat/rest-xorm-example
go install
```

## Database
Currently is using *sqlite3*-database, located in file /tmp/rest-xorm.sqlite.db

# Tests
## Requirements

```bash
go get github.com/go-resty/resty
go get github.com/smartystreets/goconvey/convey
```

## Run

```bash
cd $GOPATH/src/github.com/corvinusy/rest-xorm-example/restxorm
go test
```

# License
MIT
